package demo.practice.leetcode_eveyday;

import java.util.ArrayList;
import java.util.List;

public class P448 {

    public List<Integer> findDisappearedNumbers(int[] nums) {
        int [] bucket= new int[nums.length];
        for(int i=0;i<nums.length;i++){
            bucket[nums[i]-1]++;
        }

        List<Integer> list= new ArrayList<>();
        for(int i=0;i<bucket.length;i++){
           if(bucket[i]==0)
               list.add(bucket[i]);
        }

        return list;

    }

}
